//
//  XMChatBaseSet.h
//  XMJJ_zmy
//
//  Created by 丁浩 on 2025/7/4.
//

#import <Foundation/Foundation.h>
#import <ImSDK_Plus/ImSDK_Plus.h>

NS_ASSUME_NONNULL_BEGIN

@interface XMChatBaseSet : NSObject

+ (instancetype)shareInstance;

- (BOOL)baseSet;

- (void)loginWithUserId:(NSString *)userId
                userSig:(NSString *)userSig
                success:(void(^)(void))successBlock;

- (NSString *)getLoginUser;
- (V2TIMLoginStatus)getLoginStatus;
- (void)sendMessageWithSender:(NSString *)sender
                     receiver:(NSString *)receiver
                      content:(NSString *)content
                  messageType:(V2TIMElemType)messageType
                      success:(void (^)(V2TIMMessage *msg))successBlock;

- (void)sendCustomMsgWithDic:(NSDictionary *)dic
                      sender:(NSString *)sender
                    receiver:(NSString *)receiver
                     success:(void (^)(V2TIMMessage *msg))successBlock;

//历史消息
- (void)getHistoryMessageWithUserId:(NSString *)userId
                            lastMsg:(V2TIMMessage *)lastMsg
                            success:(void (^)(NSArray <V2TIMMessage *> *msg))successBlock;

- (void)selectPhotoWithPresentVC:(XMBaseViewController *)presentVC;

@end

NS_ASSUME_NONNULL_END
